package com.example.administrator.testc.FragmentTabHost;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.administrator.testc.R;

import org.w3c.dom.Text;

public class FragmentPage1 extends Fragment{

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_, null);
        ((ImageView)view.findViewById(R.id.imageview)).setImageResource(R.mipmap.ic_launcher);
        LinearLayout linearLayout = new LinearLayout(getContext());
        TextView tv = new TextView(getContext());
        tv.setText("测试Content");
        linearLayout.addView(view);
        linearLayout.addView(tv);
        return linearLayout;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);


    }
}
